package com.key.common.vo;

import com.key.entity.CArea;
import com.key.entity.PArea;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
/*
 *
 * @author liu
 *
 */
@ApiModel(value = "区域树状数据")
public class AreaVO {
    @ApiModelProperty(name = "id",notes = "主键id",dataType = "int")
    private Integer id; //主键id

    @ApiModelProperty(name = "pAreaId",notes = "省区域编码",dataType = "int")
    private Integer pAreaId; //省区域编码

    @ApiModelProperty(name = "pAreaName",notes = "区域名称",dataType = "String")
    private String cAreaName; //区域名称

    @ApiModelProperty(name = "pTopArea",notes = "上级区域",dataType = "String")
    private String pTopArea; //上级区域

    @ApiModelProperty(name = "pState",notes = "区域状态 正常为0 禁用为1 默认为0",dataType = "Byte")
    private Byte pState; //区域状态 正常为0 禁用为1 默认为0

    @ApiModelProperty(name = "cAreas",notes = "县级区域列表",dataType = "List")
    private List<CArea> cAreas; //县级区域列表
}
